FROM  registry.cn-beijing.aliyuncs.com/qg-ocpx/openjdk8:alpine
MAINTAINER wangzhijun@cyqgxf.com
#RUN apk add -U tzdata
#RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
#ENV TZ=Asia/Shanghai
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /rta
WORKDIR /qg-rta

EXPOSE 8070
ADD ./qg-rta.jar ./app.jar
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar -XX:+StartAttachListener app.jar
CMD ["--spring.profiles.active=prod"]